<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>搜索页</title>
    <link rel="stylesheet" href="__PUBLIC__/Mobile/css/zhanghou.css">
    <script src="__PUBLIC__/Mobile/js/jquery-1.9.1.js"></script>
    <script src="__PUBLIC__/Mobile/layer/layer.min.js"></script>

</head>

<body>
<script>
    function check(){
        var title = $('#title').val();
        if(title==''){
            layer.msg('搜索内容不能为空');
            return false;
        }
        return true;
    }
</script>
<section>
    <!--搜索页-->

<!-- <div class="return">

        <span>
            <form method="post" action="{:U('Index/goods_search')}" onsubmit="return check();">
                <div class="search1" style="overflow: hidden; position:relative;top:5px;">
                    <button type="submit" style="float: left;  border: none; outline: none; width: 8%;margin-top:2%;margin-left:1%; background: #ffffff; "></button>
                    <input name="title" type="text" id="title">
                </div>
            </form>
        </span>

</div> -->
<div class="return">
        <a href="javascript:history.back(-1);"  style="height:30px; line-height:30px;">
            <img src="__PUBLIC__/Mobile/images/cls_left1s.png" style="height:28px; line-height:28px;padding-top:3%; width:5%;padding-right:5%; padding-left:2%;">
        </a>
        <span>
            <form method="POST" action="{:U('Index/goods_search')}" onsubmit="return check();">
                <div class="search1" style="overflow: hidden; position:relative;top:5px;width:80%;">
                    <button type="submit" style="float: left;  border: none; outline: none; width: 8%;margin-top:2%;margin-left:1%; background: #ffffff; "></button>
                    <input name="title" type="text" id="title" value="">
                    <input name="type" type="text" id="title" value="1">
                </div>
            </form>
        </span>

</div>

    <div class="commodity" style="margin-bottom:13%">
        <ul>
            <if condition="$count eq 0">
                <li style="text-align: center; line-height: 50px; font-size: 18px; margin-top:200px;">没有您想要的商品</li>
                <else />
            <foreach name="list" item="vo" key="k">
				<a style="width:46%;" href="{:U('Mobile/Goods/goods_goods',array('id'=>$vo['id']))}" style="margin-right:2%">
                    <img src="__PUBLIC__/Uploads/goods/{$vo.pic_url}" style="height: 150px" >
                    <p style="height:35px;"><?php echo utf8sub($vo['title'],26);?>...</p>
                    <p><span class=" Orange left size18">￥{$vo.price_new}</span><!--<span class=" gray right" >1.8万件已售</span>--></p>
                </a>
            </foreach>
         </if>
        </ul>
    </div>
</section>
<div style="height:50px;"></div>
<!-- <div class="Navigation" style="position:fixed; bottom:0; width:100%;">
    <input type="button" class="Pay size18" style="width:20%; float:left; background:#FF790C; border:none;"  onClick="return_home({$resone.id})" value="首页">
    <input type="button" class="Pay size18" style="width:40%; float:left; background:#50A000; border:none;"  onClick="add_cart({$resone.id})" value="加入购物车">
    <input type="submit" class="Pay size18" style="width:40%; float:right; border:none;" value="立即购买" >
</div> -->

<include file="Public:footer" />


<script type="text/javascript">
function return_home(){
    window.location.href="{:U('Index/index')}";
}
</script>
</body>
</html>
